include_directories(${CMAKE_SOURCE_DIR}/src/xplatform)
include_directories(${CMAKE_SOURCE_DIR}/src/register)
add_executable(
    xmsg_gateway
    main.cpp
    xrouter_handle.cpp
    xrouter_server.cpp
    xservice_proxy.cpp
    xservice_proxy_client.cpp
)

target_link_libraries(xmsg_gateway xplatform  protobuf protoc register_client config_client)
set_out_path(xmsg_gateway)
set_runtime_name(xmsg_gateway)